<?php

namespace app\index\controller;

use think\facade\Log;

class WebHooks
{
    /**
     * 抖音开发者订阅事件
     */
    public function index(){
        $data = request()->post();
        echo json_encode($data['content']);exit;
        echo $data['content']['challenge'];die;
        Log::info($data);
        return json($data['content']['challenge']);
    }
}